package cn.gok;
class P{
    public int test(int i){
        return i;
    }
}
class C extends P{
    @Override
    public int test(int i ){
        return i+1;
    }
}
public class 重写 {
    public static void main(String[] args) {
        P c=new C();
        System.out.println(c.test(10));
    }


}
